package net.hserver.sync.controller.system.log;

import cn.hserver.core.ioc.annotation.Autowired;
import cn.hserver.core.server.util.JsonResult;
import cn.hserver.plugin.web.annotation.Controller;
import cn.hserver.plugin.web.annotation.GET;
import cn.hserver.plugin.web.annotation.POST;
import net.hserver.sync.entity.SyncWebDavConfigEntity;
import net.hserver.sync.service.SyncLogService;
import net.hserver.sync.service.SyncWebDavService;

@Controller("/sync/system/log/")
public class SyncLogController {

    @Autowired
    private SyncLogService syncLogService;

   @GET("list")
    public JsonResult list(Integer current,Integer pageSize,String keyword) {
        return JsonResult.ok().put("data",syncLogService.list(current,pageSize,keyword));
    }

    @GET("delAll")
    public JsonResult delAll() {
        return JsonResult.ok().put("data",syncLogService.delAll());
    }
}
